package vip.indo.mapper;

import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import vip.indo.entity.User;

/**
 * @Author: tianlianyin
 * @Date: 2024/11/28 15:34
 * @Descripition:
 */
@Mapper
public interface UserMapper {
    User getUserByName(String username);
    @Insert("insert into t_user (id, name, username, password, phone, gender, enabled, last_login_time) VALUE (#{id}, #{name}, #{username}, #{password}, #{phone}, #{gender}, #{enabled}, #{lastLoginTime})")
    void insertUser(User user);
}
